package com.ckg.auto.impl;

import com.ckg.auto.UserRepository;

// MySQL 实现
public class MySQLUserRepository implements UserRepository {
    private int timeout; // 简单类型参数（需手动配置）

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    @Override
    public void saveUser(String username) {
        System.out.printf("💾 [MySQL] 保存用户 %s (超时设置: %dms)%n", username, timeout);
    }
}
